<?php
/**
 * Class 首页.
 * User: chan
 * Date: 2017/10/20 11:22
 */

namespace app\api\controller;
class Index extends Base
{
    //检查权限作用域
    protected $beforeActionList  = [
        'checkPrimaryScope' => [
            'only' => ''
        ],
    ];

    /**
    *   首页
    */
    public function index(){
        $index =  (new \app\api\logic\Index())->index();
        return $this->ajaxReturn($index);
    }

    /*
    * 轮播
    */
    public function banner()
    {
        $banner =  (new \app\api\logic\Index())->banner();
        return $this->ajaxReturn($banner);
    }
}